home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
STRINGS
/
PACKAGE6
/
EQUAL.DOC
< prev
next >
Wrap
Text File
|
1990-07-25
|
1KB
|
35 lines
----------------------------------------------------------------------------
FirstEqualToSecond
----------------------------------------------------------------------------
declaration: function FirstEqualToSecond ( String1,
String2:
TypeString):
boolean;
purpose: Returns a boolean; if both strings are equal then the
boolean is set to true, if they aren't it is set to false.
precondition: String1 and String2 - both are two Strings that have been
initialized and have a value of TypeString.
postcondition: String1 and String2 do not change. The function is either
set to true or false.
special cases: none
example: begin
.
.
.
if String1 = String2 then
FirstEqualToSecond := true
else
FirstEqualToSecond := false
.
.
.
end
----------------------------------------------------------------------------